home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™94 / Talks & Papers / Timothy Knox / Pocket6.3 / Extensions / Starting / Brodie Glossary < prev    next >
Text File  |  1994-06-24  |  5KB  |  95 lines

  1. A glossary of the words defined in the file 'Brodie'.
  2.  
  3. .(  ( -- ) say: "dot paren"  <Brodie extension>  Display the text that follows, delimited by ). Do not use in a definition.
  4.  
  5. .R  ( n width -- ) say: "dot are"  <Brodie extension>  Display a number right justified in a field width wide.
  6.  
  7. .S  ( n[m] .. n[1] -- n[m] .. n[1] ) say: "dot ess"  <Brodie extension>  Display the contents of the stack.
  8.  
  9. 2- ( n -- n-2 ) say: "two minus"  <Brodie extension>  Subtract two from a number on the stack.
  10.  
  11. <> ( n1 n2 -- flag ) say: "not equal"  <Brodie extension>  Return true if n1 and n2 are not equal.
  12.  
  13. >IN ( -- addr ) say: "to in"  <Brodie extension>  A user variable holding the count of the next character to be interpreted from the keyboard.
  14.  
  15. ? ( addr -- ) say: "question"  <Brodie extension>  Display the contents of a variable.
  16.  
  17. @EXECUTE ( addr -- ) say: "at execute"  <Brodie extension>  Execute the code pointed to by addr.  If addr contains zero, nothing happens.
  18.  
  19. ASCII ( -- c ) say: "ass key"  <Brodie extension>  Return the ascii code of the next character from the input stream. The next word from the input stream is consumed.
  20.  
  21. BL  ( -- 32 ) say: "bee el"  <Brodie extension>  Return a constant, 32, an ascii space.
  22.  
  23. BLANK ( addr len -- )  <Brodie extension>  Fill addr with len spaces.
  24.  
  25. BLK ( -- addr ) say: "bee el kay"  <Brodie extension>  A user variable holding a zero if text to interpret comes from the keyboard. Minus one if from a file.
  26.  
  27. C,  ( c -- ) say: "sea comma"  <Brodie extension>  Comma c into a byte. Here advances one cell for each two bytes.
  28.  
  29. CMOVE> ( addr1 addr2 count -- ) say: "sea move up"  <Brodie extension>  A synonym for cmove.  It works in the direction best suited to the addresses.
  30.  
  31. COMPILE ( -- )  <Brodie extension>  Redefined to compile the next word from within a colon definition when an immediate word executes.
  32.  
  33. D- ( d1 d2 -- d1-d2 ) say: "dee minus"  <Brodie extension>  Subtract double length numbers.
  34.  
  35. D.R ( d width -- ) say: "dee dot are"  <Brodie extension>  Display a double number right justified in a field width wide.
  36.  
  37. D< ( d1 d2 -- flag ) say: "dee lessthan"  <Brodie extension>  Return true if d1<d2.
  38.  
  39. D= ( d1 d2 -- flag ) say: "dee equal"  <Brodie extension>  Return true if d1=d2.
  40.  
  41. DMAX ( d1 d2 -- dmax ) say: "dee max"  <Brodie extension>  Return the larger of d1 and d2
  42.  
  43. DMIN ( d1 d2 -- dmin ) say: "dee min"  <Brodie extension>  Return the smaller of d1 and d2
  44.  
  45. ERASE ( addr len -- )  <Brodie extension>  Fill addr with len zeros.
  46.  
  47. FALSE  ( -- 0 )  <Brodie extension>  Return a constant, zero, for use as a flag.
  48.  
  49. H ( -- addr ) say: "aich"  <Brodie extension>  A user variable holding the compilation address.
  50.  
  51. I ( -- n ) say: "eye"  <Brodie extension> ( rstack: n -- n ) A synonym for r.  Used as the index between DO and LOOP or +LOOP.
  52.  
  53. J ( -- n ) say: "jay"  <Brodie extension> ( rstack: n x m -- n x m )  Return the index of an outer loop.
  54.  
  55. KEY? ( -- flag ) say: "key question"  <Brodie extension>  A synonym for ?terminal.
  56.  
  57. M* ( n n -- d ) say: "em star"  <Brodie extension>  Multiply two signed single length numbers, return a double number.
  58.  
  59. M+ ( d n -- d[d+n] ) say: "em plus"  <Brodie extension>  Add a single number to a double number returning a double sum.
  60.  
  61. M/ ( d n -- quot ) say: "em slash"  <Brodie extension>  Divide a double number by a single number returning the signed quotient.
  62.  
  63. NOT ( n -- not[n] )  <Brodie extension>  Return the bitwise opposite of a number on the stack. This is not the same as 0=.
  64.  
  65. NUMBER ( addr -- d )  <Brodie extension>  Redefined to return a double number.  65535 is the largest number to be correctly converted.
  66.  
  67. OCTAL ( -- )  <Brodie extension>  Set the numeric base to 8.
  68.  
  69. R@ ( -- n ) say: "are rat"  <Brodie extension> ( rstack: n -- n )  A synonym for r.
  70.  
  71. RECURSE ( -- )  <Brodie extension>  Execute the word in which recurse appears.
  72.  
  73. S0 ( -- dabs.addr ) say: "ess zero"  <Brodie extension>  Return the absolute address of the bottom of the stack.
  74.  
  75. SPACES ( n -- )  <Brodie extension>  Emit n spaces.
  76.  
  77. SPAN ( -- addr )  <Brodie extension>  A user variable holding the count of EXPECTed text.
  78.  
  79. STATE ( -- addr )  <Brodie extension>  A user variable holding zero if interpreting, minus one if compiling.
  80.  
  81. STRING ( c -- )  <Brodie extension>  Compile a word delimited by c into the dictionary.
  82.  
  83. TRUE  ( -- -1 )  <Brodie extension>  Return a constant, minus one, for use as a flag.
  84.  
  85. U.R  ( u width -- ) say: "you dot are"  <Brodie extension>  Display an unsigned number right justified in a field width wide.
  86.  
  87. UM* ( n n -- d ) say: "you em star"  <Brodie extension>  Multiply two unsigned single length numbers, return a double number.  A synonym for U*.
  88.  
  89. UM/MOD ( d n -- urem uquot ) say: "you em slash mod"  <Brodie extension>  Divide a double number by a single number returning the unsigned remainder and quotient.
  90.  
  91. WORD ( c -- addr )  <Brodie extension>  Redefined to return the address of here.
  92.  
  93. ['] ( -- addr ) say: "bracket tick"  <Brodie extension>  Get the address of the next word in a colon definition.
  94.  
  95.